package cn.mcch.investigator.adapter.viewpageradapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import cn.mcch.investigator.fragment.CreateTaskFragment;
import cn.mcch.investigator.fragment.FragmentFactory;

/**
 * Created by Administrator on 2016/12/16.
 */
public class MainViewPagerAdapter extends FragmentPagerAdapter {
    public MainViewPagerAdapter(FragmentManager fm) {
        super(fm);
    }

    @Override
    public Fragment getItem(int position) {
        return FragmentFactory.getFragmentFromPosition(position);
    }

    @Override
    public int getCount() {
        return 4;
    }
}
